package cn.iune.backcenter.authen;

import javax.persistence.*;

import com.justep.baas.data.RowState;

import java.io.Serializable;
import java.sql.Timestamp;


/**
 * The persistent class for the sa_opperson database table.
 * 
 */

@Entity
@Table(name="SaRelationalLogin"	
, uniqueConstraints = { 
		@UniqueConstraint(columnNames = { "identification"})
	}
)
@NamedQuery(name="SaRelationalLogin.findAll", query="SELECT s FROM SaRelationalLogin s")
public class SaRelationalLogin implements Serializable {
	
	private static final long serialVersionUID = 1L;

	@Id
	@Column(length=32)
	private String sID;
	
	@Column(length=36)
	private String personID;//人员ID
	
	@Column(length=65)
	private String identification;//唯一标识
	
	@Column(length=20)
	private String sType;//类型：EMAIL;PHONE;QQ;WXAPP;WEIBO;SINA;ALIAPP;

	@Column(length=36)
	private String validCode;

	private int sValidState = 1;//可用状态
	
	private Timestamp registerDate;

	
	@Version
	private int version = 0;
	
	@Transient//非持久字段
	private RowState rowState;
	public RowState getRowState() {
		return rowState;
	}
	public void setRowState(RowState rowState) {
		this.rowState = rowState;
	}
	public String getsID() {
		return sID;
	}
	public void setsID(String sID) {
		this.sID = sID;
	}
	public String getPersonID() {
		return personID;
	}
	public void setPersonID(String personID) {
		this.personID = personID;
	}
	public String getIdentification() {
		return identification;
	}
	public void setIdentification(String identification) {
		this.identification = identification;
	}
	public String getsType() {
		return sType;
	}
	public void setsType(String sType) {
		this.sType = sType;
	}
	public String getValidCode() {
		return validCode;
	}
	public void setValidCode(String validCode) {
		this.validCode = validCode;
	}
	public int getsValidState() {
		return sValidState;
	}
	public void setsValidState(int sValidState) {
		this.sValidState = sValidState;
	}
	public Timestamp getRegisterDate() {
		return registerDate;
	}
	public void setRegisterDate(Timestamp registerDate) {
		this.registerDate = registerDate;
	}
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}




}